Optimal. Leaf size=350 \[ \frac {a \sqrt {a+b x^2+c x^4}}{2 d}-\frac {\left (4 c d^2-e (5 b d-4 a e)-2 c d e x^2\right ) \sqrt {a+b x^2+c x^4}}{8 d e^2}-\frac {a^{3/2} \tanh ^{-1}\left (\frac {2 a+b x^2}{2 \sqrt {a} \sqrt {a+b x^2+c x^4}}\right )}{2 d}+\frac {a b \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{4 \sqrt {c} d}+\frac {\left (8 c^2 d^3+b e^2 (3 b d-4 a e)-12 c d e (b d-a e)\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{16 \sqrt {c} d e^3}-\frac {\left (c d^2-b d e+a e^2\right )^{3/2} \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x^2}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x^2+c x^4}}\right )}{2 d e^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.36, antiderivative size = 350, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 8, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.276, Rules used = {1265, 909,
748, 857, 635, 212, 738, 828} \begin {gather*} -\frac {a^{3/2} \tanh ^{-1}\left (\frac {2 a+b x^2}{2 \sqrt {a} \sqrt {a+b x^2+c x^4}}\right )}{2 d}+\frac {\left (-12 c d e (b d-a e)+b e^2 (3 b d-4 a e)+8 c^2 d^3\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{16 \sqrt {c} d e^3}-\frac {\sqrt {a+b x^2+c x^4} \left (-e (5 b d-4 a e)+4 c d^2-2 c d e x^2\right )}{8 d e^2}-\frac {\left (a e^2-b d e+c d^2\right )^{3/2} \tanh ^{-1}\left (\frac {-2 a e+x^2 (2 c d-b e)+b d}{2 \sqrt {a+b x^2+c x^4} \sqrt {a e^2-b d e+c d^2}}\right )}{2 d e^3}+\frac {a \sqrt {a+b x^2+c x^4}}{2 d}+\frac {a b \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{4 \sqrt {c} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 635
Rule 738
Rule 748
Rule 828
Rule 857
Rule 909
Rule 1265
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2+c x^4\right )^{3/2}}{x \left (d+e x^2\right )} \, dx &=\frac {1}{2} \text {Subst}\left (\int \frac {\left (a+b x+c x^2\right )^{3/2}}{x (d+e x)} \, dx,x,x^2\right )\\ &=-\frac {\text {Subst}\left (\int \frac {(-b d+a e-c d x) \sqrt {a+b x+c x^2}}{d+e x} \, dx,x,x^2\right )}{2 d}+\frac {a \text {Subst}\left (\int \frac {\sqrt {a+b x+c x^2}}{x} \, dx,x,x^2\right )}{2 d}\\ &=\frac {a \sqrt {a+b x^2+c x^4}}{2 d}-\frac {\left (4 c d^2-e (5 b d-4 a e)-2 c d e x^2\right ) \sqrt {a+b x^2+c x^4}}{8 d e^2}-\frac {a \text {Subst}\left (\int \frac {-2 a-b x}{x \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{4 d}+\frac {\text {Subst}\left (\int \frac {\frac {1}{2} c \left (4 b c d^3-5 b^2 d^2 e-4 a c d^2 e+12 a b d e^2-8 a^2 e^3\right )+\frac {1}{2} c \left (8 c^2 d^3+b e^2 (3 b d-4 a e)-12 c d e (b d-a e)\right ) x}{(d+e x) \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{8 c d e^2}\\ &=\frac {a \sqrt {a+b x^2+c x^4}}{2 d}-\frac {\left (4 c d^2-e (5 b d-4 a e)-2 c d e x^2\right ) \sqrt {a+b x^2+c x^4}}{8 d e^2}+\frac {a^2 \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{2 d}+\frac {(a b) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{4 d}-\frac {\left (c d^2-b d e+a e^2\right )^2 \text {Subst}\left (\int \frac {1}{(d+e x) \sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{2 d e^3}+\frac {\left (8 c^2 d^3+b e^2 (3 b d-4 a e)-12 c d e (b d-a e)\right ) \text {Subst}\left (\int \frac {1}{\sqrt {a+b x+c x^2}} \, dx,x,x^2\right )}{16 d e^3}\\ &=\frac {a \sqrt {a+b x^2+c x^4}}{2 d}-\frac {\left (4 c d^2-e (5 b d-4 a e)-2 c d e x^2\right ) \sqrt {a+b x^2+c x^4}}{8 d e^2}-\frac {a^2 \text {Subst}\left (\int \frac {1}{4 a-x^2} \, dx,x,\frac {2 a+b x^2}{\sqrt {a+b x^2+c x^4}}\right )}{d}+\frac {(a b) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x^2}{\sqrt {a+b x^2+c x^4}}\right )}{2 d}+\frac {\left (c d^2-b d e+a e^2\right )^2 \text {Subst}\left (\int \frac {1}{4 c d^2-4 b d e+4 a e^2-x^2} \, dx,x,\frac {-b d+2 a e-(2 c d-b e) x^2}{\sqrt {a+b x^2+c x^4}}\right )}{d e^3}+\frac {\left (8 c^2 d^3+b e^2 (3 b d-4 a e)-12 c d e (b d-a e)\right ) \text {Subst}\left (\int \frac {1}{4 c-x^2} \, dx,x,\frac {b+2 c x^2}{\sqrt {a+b x^2+c x^4}}\right )}{8 d e^3}\\ &=\frac {a \sqrt {a+b x^2+c x^4}}{2 d}-\frac {\left (4 c d^2-e (5 b d-4 a e)-2 c d e x^2\right ) \sqrt {a+b x^2+c x^4}}{8 d e^2}-\frac {a^{3/2} \tanh ^{-1}\left (\frac {2 a+b x^2}{2 \sqrt {a} \sqrt {a+b x^2+c x^4}}\right )}{2 d}+\frac {a b \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{4 \sqrt {c} d}+\frac {\left (8 c^2 d^3+b e^2 (3 b d-4 a e)-12 c d e (b d-a e)\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{2 \sqrt {c} \sqrt {a+b x^2+c x^4}}\right )}{16 \sqrt {c} d e^3}-\frac {\left (c d^2-b d e+a e^2\right )^{3/2} \tanh ^{-1}\left (\frac {b d-2 a e+(2 c d-b e) x^2}{2 \sqrt {c d^2-b d e+a e^2} \sqrt {a+b x^2+c x^4}}\right )}{2 d e^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.94, size = 258, normalized size = 0.74 \begin {gather*} \frac {\left (-4 c d+5 b e+2 c e x^2\right ) \sqrt {a+b x^2+c x^4}}{8 e^2}-\frac {\sqrt {-c d^2+b d e-a e^2} \left (c d^2+e (-b d+a e)\right ) \tan ^{-1}\left (\frac {\sqrt {c} \left (d+e x^2\right )-e \sqrt {a+b x^2+c x^4}}{\sqrt {-c d^2+e (b d-a e)}}\right )}{d e^3}+\frac {a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {c} x^2-\sqrt {a+b x^2+c x^4}}{\sqrt {a}}\right )}{d}-\frac {\left (8 c^2 d^2+3 b^2 e^2+12 c e (-b d+a e)\right ) \log \left (b+2 c x^2-2 \sqrt {c} \sqrt {a+b x^2+c x^4}\right )}{16 \sqrt {c} e^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1612\) vs.
\(2(302)=604\).
time = 0.14, size = 1613, normalized size = 4.61
method | result | size |
elliptic | \(\frac {c \,x^{2} \sqrt {c \,x^{4}+b \,x^{2}+a}}{4 e}+\frac {5 b \sqrt {c \,x^{4}+b \,x^{2}+a}}{8 e}+\frac {3 b^{2} \ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right )}{16 e \sqrt {c}}+\frac {3 a \sqrt {c}\, \ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right )}{4 e}-\frac {c \sqrt {c \,x^{4}+b \,x^{2}+a}\, d}{2 e^{2}}-\frac {3 b \sqrt {c}\, d \ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right )}{4 e^{2}}+\frac {c^{\frac {3}{2}} d^{2} \ln \left (\frac {\frac {b}{2}+c \,x^{2}}{\sqrt {c}}+\sqrt {c \,x^{4}+b \,x^{2}+a}\right )}{2 e^{3}}+\frac {\ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right ) a^{2}}{2 d \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}-\frac {\ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right ) a b}{e \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}+\frac {d \ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right ) a c}{e^{2} \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}+\frac {d \ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right ) b^{2}}{2 e^{2} \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}-\frac {d^{2} \ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right ) b c}{e^{3} \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}+\frac {d^{3} \ln \left (\frac {\frac {2 a \,e^{2}-2 d e b +2 c \,d^{2}}{e^{2}}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+2 \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}\, \sqrt {c \left (x^{2}+\frac {d}{e}\right )^{2}+\frac {\left (e b -2 c d \right ) \left (x^{2}+\frac {d}{e}\right )}{e}+\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}{x^{2}+\frac {d}{e}}\right ) c^{2}}{2 e^{4} \sqrt {\frac {a \,e^{2}-d e b +c \,d^{2}}{e^{2}}}}-\frac {a^{\frac {3}{2}} \ln \left (\frac {2 a +b \,x^{2}+2 \sqrt {a}\, \sqrt {c \,x^{4}+b \,x^{2}+a}}{x^{2}}\right )}{2 d}\) | \(1270\) |
default | \(\text {Expression too large to display}\) | \(1613\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b x^{2} + c x^{4}\right )^{\frac {3}{2}}}{x \left (d + e x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (c\,x^4+b\,x^2+a\right )}^{3/2}}{x\,\left (e\,x^2+d\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________